package com.yuyou.tas.feedback.service.impl;

import com.yuyou.tas.feedback.mapper.FeedbackStudentExceMapper;
import com.yuyou.tas.feedback.service.IFeedbackStudentExceService;
import com.yuyou.tas.service.api.feedback.dto.ExceStudentDTO;
import com.yuyou.tas.service.api.feedback.entity.FeedbackStudentExce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FeedbackStudentExceServiceImpl implements IFeedbackStudentExceService {

    @Autowired
    private FeedbackStudentExceMapper mapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return mapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(FeedbackStudentExce record) {
        return mapper.insert(record);
    }

    @Override
    public FeedbackStudentExce selectByPrimaryKey(Long id) {
        return mapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(FeedbackStudentExce record) {
        return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public void delByStudentFeedClass(Long feedbackClassId, Long studentId) {
        mapper.delByStudentFeedClass(feedbackClassId,studentId);
    }

    @Override
    public List<FeedbackStudentExce> getByFeedbackClassId(Long feedbackClassId) {
        return mapper.getByFeedbackClassId(feedbackClassId);
    }

    @Override
    public List<ExceStudentDTO> findExceStudentByFeedbackClassId(Long feedbackClassId) {
        return mapper.findExceStudentByFeedbackClassId(feedbackClassId);
    }
}